import * as types from './mutation-types'

const matutaions = {
    [types.SET_SINGER](state, singer) {
        state.singer = singer
    },
    [types.SET_NAVINDEX](state, index) {
        state.navIndex = index;
    },
    [types.SET_TYPE](state, type) {
        state.type = type
    },
    [types.SET_GOODSID](state, goodsId) {
        state.goodsId = goodsId;
    },
    [types.SET_LINGINGID](state, liningId) {
        state.liningId = liningId
    },
    [types.SET_STEREOTYPE](state, stereotype) {
        state.stereotype = stereotype;
    },
    [types.SET_DESIGNDATA](state, designData) {
        state.designData = designData;
    },
    [types.SET_MEASUREDATA](state, measureData) {
        state.measureData = measureData
    },
    [types.SET_MEASUREMORE](state, measureMore) {
        state.measureMore = measureMore
    },
    [types.SET_STITCHWORK](state, stitchwork) {
        state.stitchwork = stitchwork
    },
    [types.SET_LOGO](state, logo) {
        state.logo = logo;
    },
    [types.SET_USERINFOR](state, userinfor) {
        state.userinfor = userinfor;
    },
    [types.SET_PRICE](state, price) {
        state.pageInfor.price = price
    },
    [types.SET_EMERGENCY](state,opt){
        state.emergency = opt
    }
};
export default matutaions
